"""
基础准备
"""
# 导包
from pyspark import SparkConf, SparkContext
# 创建sprakConf对象
conf = SparkConf().setMaster("local[*]").setAppName("wordcount")
# 创建SparkContext对象
sc = SparkContext(conf=conf)
# 设置日志级别
print(sc.version)
sc.stop()
